﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SystemLog.aspx.cs" Inherits="status_SystemLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <h2>系统运行历史状态信息</h2>
    <div>
        <asp:Repeater ID="rptSystemStatus" runat="server" EnableViewState="false">
        <HeaderTemplate>
            <table border="1" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber1">
                <tr>
                    <th>
                        编号
                    </th>
                    <th>
                        运行日志
                    </th>
                    <th>
                        开始时间
                    </th>
                    <th>
                        结束时间
                    </th>
                    <th>
                        本次运行插件数
                    </th>
                    <th>查看运行日志</th>
                   
        </HeaderTemplate>
        <ItemTemplate>
        <tr style=" ">
            <td>
             <%# Eval("sys_id") %>
            </td>
               <td>
             <%# GetRunStatus(Eval("status"))%>
            </td>
               <td>
               <%# (new DateTime(Convert.ToInt64(Eval("start_time")))).ToString() %>
            </td>
               <td>
            <%# (new DateTime(Convert.ToInt64(Eval("end_time")))).ToString() %>
            </td>
               <td>
             <%# Eval("sum_plugins") %>
            </td>
             <td>
             <a href= "PluginLog.aspx?SysemStatusId=<%# Eval("sys_id") %>">查看插件</a>
            </td>
        </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
          <tr style="background-color:Green">
            <td>
             <%# Eval("sys_id") %>
            </td>
               <td>
             <%# GetRunStatus(Eval("status"))%>
            </td>
               <td>
               <%# (new DateTime(Convert.ToInt64(Eval("start_time")))).ToString() %>
            </td>
               <td>
            <%# (new DateTime(Convert.ToInt64(Eval("end_time")))).ToString() %>
            </td>
               <td>
             <%# Eval("sum_plugins") %>
            </td>
              <td>
             <a href= "PluginLog.aspx?SysemStatusId=<%# Eval("sys_id") %>">查看插件</a>
            </td>
        </tr>
        </AlternatingItemTemplate>
        
        <FooterTemplate>
        </table>
        </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>

</html>
